#!/usr/bin/python
# -*- coding: utf-8 -*-
import utlis


class YiZhuShang(object):
    def __init__(self, data):
        self.id = data['id']
        content = utlis.toString(data['cont'])
        content = content.replace("'", "\\\'")
        content = content.replace('"', '\\\"')
        self.cont = content
        cankaoStr = utlis.toString(data['cankao'])
        cankaoStr = cankaoStr.replace("'", "\\\'")
        cankaoStr = cankaoStr.replace('"', '\\\"')
        self.cankao = cankaoStr
